package com.daxidi.cn.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@ApiModel("消费记录")
@Data
@EqualsAndHashCode(callSuper = false)
public class MemberVo implements Serializable {
    @ApiModelProperty("订单号")
    private Long orderId;

    @ApiModelProperty("应收")
    private Double total;

    @ApiModelProperty("实收")
    private Double discounted;

    @ApiModelProperty("折扣率")
    private Double discount;

    @ApiModelProperty("订单生成时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @ApiModelProperty("商家信息")
    private String shopName;

    @ApiModelProperty("节省金额")
    private Double save;

}
